Skip to content

[SPARK-56491][CORE] Add ReadOnlySparkConf.getAllAsJavaMap#55352

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56491
Closed

[SPARK-56491][CORE] Add ReadOnlySparkConf.getAllAsJavaMap#55352
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56491

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR adds a getAllAsJavaMap method to the SparkConf trait that returns java.util.Map[String, String].

Why are the changes needed?

The existing getAll method returns Array[(String, String)] (Scala tuples), which is awkward to use from Java code. Java callers must deal with scala.Tuple2 directly. The new getAllAsJavaMap method provides a natural Java-friendly alternative using java.util.Map.

Does this PR introduce any user-facing change?

Yes. A new public method getAllAsJavaMap is available on SparkConf.

How was this patch tested?

A new unit test getAllAsJavaMap was added in SparkConfSuite.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-56491] Add ReadOnlySparkConf.getAllAsJavaMap [SPARK-56491][CORE] Add ReadOnlySparkConf.getAllAsJavaMap Apr 15, 2026
@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Thank you, @peter-toth !

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Merged to master for Apache Spark 4.2.0.

@dongjoon-hyun dongjoon-hyun deleted the SPARK-56491 branch April 15, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants